<%@ page import="com.iweb.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: 92460
  Date: 2020/12/18
  Time: 10:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@  taglib  uri="http://java.sun.com/jsp/jstl/core"  prefix="c"  %>
<html>
<head>
    <title>测试jslt标签</title>
</head>
<%
String num = "100";
request.setAttribute("num",num);
User user = new User();
request.setAttribute("user",user);
%>
<body>
<c:set var="testNum" value="100" scope="request"></c:set>
<c:set target="${requestScope.user}" property="userId" value="1"></c:set>
<p>testNum:${requestScope.testNum}</p>
<p>userId:${requestScope.user.userId}</p>
<p>${"<a href='http://www.baidu.com'>百度</a>"}</p>
<c:out escapeXml="false" value="<a href='http://www.baidu.com'>百度</a>"/>

</body>
</html>